commonlibsse_ng\re\m/
Misc.rs1mod message_box;
2
3pub use message_box::{
4 CreateMessage, DebugMessageBox, DebugMessageBoxWithConfig, DebugMessageOkBox, MessageBoxConfig,
5};
6
7use core::ffi::{CStr, c_char};
8
9use crate::re::Actor::Actor;
10use crate::re::BSCoreTypes::RefHandle;
11use crate::re::INIPrefSettingCollection::INIPrefSettingCollection;
12use crate::re::INISettingCollection::INISettingCollection;
13use crate::re::InventoryEntryData::InventoryEntryData;
14use crate::re::NiPoint3::NiPoint3;
15use crate::re::NiSmartPointer::NiPointer;
16use crate::re::Setting::Setting;
17use crate::re::TESObjectREFR::TESObjectREFR;
18
19#[commonlibsse_ng_derive_internal::relocate_fn(se_id = 12204, ae_id = 12332)]
20pub fn LookupReferenceByHandle_ActorImpl(
21 handle: &RefHandle,
22 refr_out: &mut NiPointer<Actor>,
23) -> bool {
24}
25
26#[commonlibsse_ng_derive_internal::relocate_fn(se_id = 12204, ae_id = 12332)]
27pub fn LookupReferenceByHandle_RefrImpl(
28 handle: *const RefHandle,
29 refr_out: *mut NiPointer<TESObjectREFR>,
30) -> bool {
31}
32
33#[commonlibsse_ng_derive_internal::relocate_fn(se_id = 12193, ae_id = 12326)]
34pub fn CreateRefHandle(handle_out: *mut RefHandle, ref_to: *mut TESObjectREFR) {}
35
36#[commonlibsse_ng_derive_internal::relocate_fn(se_id = 52050, ae_id = 52933)]
37pub fn DebugNotification(
38 notification: *const c_char,
39 sound_to_play: *const c_char,
40 cancel_if_already_queued: bool,
41) {
42}
43
44#[commonlibsse_ng_derive_internal::relocate_fn(se_id = 15779, ae_id = 16017)]
45pub fn GetArmorFinalRating(
46 armor_entry_data: *mut InventoryEntryData,
47 armor_perks: f32,
48 skill_multiplier: f32,
49) -> f32 {
50}
51
52#[commonlibsse_ng_derive_internal::relocate(
53 cast_as = "*mut u32",
54 default = "None",
55 deref_once,
56 id(se = 523662, ae = 410201)
57)]
58pub fn GetDurationOfApplicationRunTime() -> Option<u32> {
59 |deref_type: DerefType| Some(deref_type)
60}
61
62pub fn GetINISetting(name: &CStr) -> Option<&'static Setting> {
63 if let Some(setting) =
64 INIPrefSettingCollection::get_singleton().and_then(|prefs| prefs.__base.get_setting(name))
65 {
66 return Some(setting);
67 };
68
69 INISettingCollection::get_singleton().and_then(|ini| ini.get_setting(name))
70}
71
72#[commonlibsse_ng_derive_internal::relocate(
73 cast_as = "*mut *mut f32",
74 default = "None",
75 deref_once,
76 id(se = 523660, ae = 410199)
77)]
78pub fn GetSecondsSinceLastFrame() -> Option<f32> {
79 |deref_type: DerefType| unsafe { deref_type.as_ref().copied() }
80}
81
82#[inline]
83pub fn LookupReferenceByHandle_Actor(handle: &RefHandle, refr_out: &mut NiPointer<Actor>) -> bool {
84 LookupReferenceByHandle_ActorImpl(handle, refr_out)
85}
86
87#[inline]
88pub fn LookupReferenceByHandle_Refr(
89 handle: &RefHandle,
90 refr_out: &mut NiPointer<TESObjectREFR>,
91) -> bool {
92 LookupReferenceByHandle_RefrImpl(handle, refr_out)
93}
94
95#[commonlibsse_ng_derive_internal::relocate_fn(se_id = 52054, ae_id = 52939)]
96pub fn PlaySound(editor_id: *const c_char) {}
97
98#[commonlibsse_ng_derive_internal::relocate_fn(se_id = 32275, ae_id = 33012)]
99pub fn ShakeCamera(strength: f32, position: &NiPoint3, duration: f32) {}